package com.utils.network2.entity;

public class Response<T> {

    private int result_code;
    private String result_info = "";
    private T result_data;

    public int getResult_code() {
        return result_code;
    }

    public void setResult_code(int pResult_code) {
        result_code = pResult_code;
    }

    public String getResult_info() {
        return result_info;
    }

    public void setResult_info(String pResult_info) {
        result_info = pResult_info;
    }

    public T getResult_data() {
        return result_data;
    }

    public void setResult_data(T pResult_data) {
        result_data = pResult_data;
    }

    public boolean isError() {
        return result_code != 0;
    }

    public String getMsg() {
        return result_info;
    }

    public T getResults() {
        return result_data;
    }
}
